package sit.mycatalog.jpa;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;


/**
 * The persistent class for the catnode database table.
 * 
 */
@Entity
public class Catnode extends AbstractEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Integer catid;

	private String cattype;

	private String name;

	private Integer parentid;
	
	private transient List<Catnode> childNode;

    public Catnode() {
    }

	public Integer getCatid() {
		return this.catid;
	}

	public void setCatid(Integer catid) {
		this.catid = catid;
	}

	public String getCattype() {
		return this.cattype;
	}

	public void setCattype(String cattype) {
		this.cattype = cattype;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getParentid() {
		return this.parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public List<Catnode> getChildNode() {
		return childNode;
	}

	public void setChildNode(List<Catnode> childNode) {
		this.childNode = childNode;
	}
	
}